<!--
 * @Author: Rachel 943701297@qq.com
 * @Date: 2022-07-24 00:25:43
 * @LastEditors: Rachel 943701297@qq.com
 * @LastEditTime: 2022-07-24 11:30:31
 * @FilePath: \JSc:\Users\94370\Desktop\面向工作学习\html css\11-移动Web开发\H5\index1.html
 * @Description: 
 * 
 * Copyright (c) 2022 by Rachel 943701297@qq.com, All Rights Reserved. 
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>nav布局</title>
    <style>
      body {
        max-width: 540px;
        min-width: 320px;
        margin: 0 auto;
        font: normal 14px/1.5 Tahoma, "Lucida Grande", Verdana,
          "Microsoft Yahei", STXihei, hei;
        color: #000;
        background: #f2f2f2;
        overflow-x: hidden;
        -webkit-tap-highlight-color: transparent;
      }

      ul {
        list-style: none;
        margin: 0;
        padding: 0;
      }

      a {
        text-decoration: none;
        color: #222;
      }

      div {
        box-sizing: border-box;
      }
      nav {
        overflow: hidden;
        border-radius: 8px;
        margin: 10px 4px 3px;
      }
      .nav-common {
        display: flex;
        height: 88px;
        background-color: pink;
      }
      .nav-common:nth-child(2) {
        margin: 3px 0;
      }
      .nav-items {
        display: flex;
        flex-flow: column;
        flex: 1;
      }
      .nav-items:nth-child(-n + 2) {
        border-right: 1px solid white;
      }
      .nav-items a {
        color: white;
        line-height: 44px;
        text-align: center;
        flex: 1;
      }
      .nav-items a:nth-child(1) {
        border-bottom: 1px solid white;
      }
      .nav-items:nth-child(1) a {
        border: 0;
        background: url(./images/hotel.png) no-repeat bottom center;
        background-size: 121px auto;
      }
      .nav-common:nth-child(1) {
        background: -webkit-linear-gradient(left, #fa5a55, #fa994d);
      }

      .nav-common:nth-child(2) {
        background: -webkit-linear-gradient(left, #4b90ed, #53bced);
      }

      .nav-common:nth-child(3) {
        background: -webkit-linear-gradient(left, #34c2a9, #6cd559);
      }
    </style>
  </head>
  <body>
    <!-- 主导航栏 -->
    <nav>
      <div class="nav-common">
        <div class="nav-items">
          <a href="#">海外酒店</a>
        </div>
        <div class="nav-items">
          <a href="#">海外酒店</a>
          <a href="#">特价酒店</a>
        </div>
        <div class="nav-items">
          <a href="#">海外酒店</a>
          <a href="#">特价酒店</a>
        </div>
      </div>
      <div class="nav-common">
        <div class="nav-items">
          <a href="#">海外酒店</a>
        </div>
        <div class="nav-items">
          <a href="#">海外酒店</a>
          <a href="#">特价酒店</a>
        </div>
        <div class="nav-items">
          <a href="#">海外酒店</a>
          <a href="#">特价酒店</a>
        </div>
      </div>
      <div class="nav-common">
        <div class="nav-items">
          <a href="#">海外酒店</a>
        </div>
        <div class="nav-items">
          <a href="#">海外酒店</a>
          <a href="#">特价酒店</a>
        </div>
        <div class="nav-items">
          <a href="#">海外酒店</a>
          <a href="#">特价酒店</a>
        </div>
      </div>
    </nav>
  </body>
</html>
